package entity;

import java.io.Serializable;
import java.util.List;
import lombok.Data;

/**
 * 分页实体类.
 *
 * @author 宫新程
 * @since 2019/3/2 0:29
 */
@Data
public class PageResult<T> implements Serializable {

  private long total;
  private List<T> rows;

  public PageResult() {}

  public PageResult(long total, List<T> rows) {
    this.total = total;
    this.rows = rows;
  }
}
